package com.cloud.demo.common.enums;

import lombok.Getter;

@Getter
public enum  ResultEnum {
    SUCCESS(200,"操作成功"),
    LOGIN_ERROR(200001,"账户或密码错误"),
    ILLEGAL_LOGIN(200002,"登录错误超过次数，请稍后操作"),
    NOT_LOGIN(200003,"未登录"),
    ORDER_FULL(400001,"订单已满，请联系管理员"),
    ORDER_EXIST(400002,"订单号已存在"),
    ORDER_IS_NULL(400003,"订单内容不能为空");


    private int code;
    private String message;
    private ResultEnum(int code,String message){
        this.code=code;
        this.message=message;
    }
}
